<template>
  <div>
    <div>
      <span>支付设置</span>
    </div>

    <el-table :data="tableData" style="width: 100%">
      <el-table-column prop="input1" label="编号"></el-table-column>
      <el-table-column prop="name" label="支付方式"> </el-table-column>
      <el-table-column property="menusstate" label="状态">
        <template scope="scope">
          <el-switch
            active-color=" #ff4949"
            inactive-color="#13ce66"
            v-model="scope.row.menusstate"
          >
          </el-switch>
        </template>
      </el-table-column>
      <el-table-column label="操作" style="text-align: center">
        <template slot-scope="scope">
          <el-button size="mini" @click="dialogVisible = true">编辑</el-button>
          <el-button size="mini" type="danger" @click="dialogVisible2 = true"
            >删除</el-button
          >
        </template>
      </el-table-column>
    </el-table>
    <el-dialog
      title="提示"
      :visible.sync="dialogVisible"
      width="30%"
      :before-close="handleClose"
      ><span>请输入编号：</span><br /><br />
      <el-input
        style="width: 224px; margin-bottom: 20px"
        placeholder="请输入编号"
        v-model="input1"
      >
      </el-input
      ><br />
      <span>请选择支付方式</span><br /><br />
      <el-select v-model="value" placeholder="请选择">
        <el-option
          v-for="item in options"
          :key="item.value"
          :label="item.label"
          :value="item.value"
        >
        </el-option> </el-select
      ><br /><br />
      <span slot="footer" class="dialog-footer">
        <el-button @click="dialogVisible = false">取 消</el-button>
        <el-button type="primary" @click="dialogVisible = false"
          >确 定</el-button
        >
      </span>
    </el-dialog>
    <el-dialog
      title="提示"
      :visible.sync="dialogVisible2"
      width="30%"
      :before-close="handleClose"
    >
      <span>确认删除？</span>
      <span slot="footer" class="dialog-footer">
        <el-button @click="dialogVisible2 = false">取 消</el-button>
        <el-button type="primary" @click="dialogVisible2 = false"
          >确 定</el-button
        >
      </span>
    </el-dialog>
  </div>
</template>
<script>
export default {
  data() {
    return {
      tableData: [
        {
          input1: "3123",
          name: "小程序支付",
        },
        {
          input1: "321",
          name: "小程序支付",
        },
        {
          input1: "123",
          name: "扫码支付",
        },
        {
          input1: "123",
          name: "现金支付",
        },
      ],
      options: [
        {
          value: "选项1",
          label: "小程序支付",
        },
        {
          value: "选项2",
          label: "现金支付",
        },
        {
          value: "选项3",
          label: "微信支付",
        },
        {
          value: "选项4",
          label: "支付宝支付",
        },
      ],
      value: "",
      dialogVisible: false,
      dialogVisible2: false,
      input1: "",
    };
  },
};
</script>
<style lang="less" scope>
</style>